
{

    const NAME = 'services.server'
    const CONFIG = require(__MAIN__ + '/config.ts')

    module.exports = require('angular')
        .module(NAME, [])
        .factory('server', ($http) => {
            return {
                getServerList: function () {
                    return $http.jsonp(CONFIG.urlGetServerList + '?callback=JSON_CALLBACK&gameId=' + CONFIG.gameId)
                }
            }
        })

}